package org.dtrd.modules.record.service;

import org.dtrd.modules.record.entity.bean.*;
import org.dtrd.modules.record.entity.po.DtrdEntRdSigninBody;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 * 人体成分分析表服务类
 * </p>
 *
 * @author sun
 * @since 2022-08-08
 */
public interface IDtrdEntRdSigninBodyService extends IService<DtrdEntRdSigninBody> {

    List<SigninBodyListInfo> getSigninBodyList(SigninBodyListRequest request);

    IPage<SigninBodyListInfo> pageSigninBody(SigninBodyPageRequest request);

    SigninBodyDetail getSigninBody(Integer dataId);

    boolean saveOrUpdateSigninBody(SigninBodyDetail dto);

    boolean removeSigninBody(Integer dataId);

    /**
     * 获取月报，总结报告的体重图表
     * @param patientId
     * @param startDate
     * @param endDate
     * @return
     */
    PeriodBmi getPeriodBmiSigninBody(Integer patientId, String startDate, String endDate);
}
